package com.bjpowernode;

import cn.hutool.bloomfilter.BitMapBloomFilter;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("com.bjpowernode.mapper")
@EnableCaching // 开启缓存
public class WebApplication {
    public static void main(String[] args) {
        SpringApplication.run(WebApplication.class,args);
        System.out.println(1);
    }
    /**
     * 如果2个人同时开放
     * 上班第一件事先pull
     * 在开放,先commit pull push
     * 发现冲突,把同时叫过来商量解决
     * 如果不再先把自己的代码写到下面等上班问他
     */

    @Bean
    public BitMapBloomFilter bloomFilter(){
        return new BitMapBloomFilter(100);
    }
}
